$(document).ready(function () {
    $("#submit").on("click",function (e) {
        e.preventDefault();
        submitInfo();
    });
    var id = UrlParm.parm("id");
    list(id);
    add(id);
})
function list(id) {
    $.ajax({
        "url":"../user_all.do",
        "type":"POST",
        "data":{"method":"review"},
        "dataType":"json",
        "success":function (result) {
            $("form").append($("<input type='hidden' name='box' value='"+id+"'>"));
            $("#id").attr("value",""+result.id+"");
            $("#password").attr("value",""+result.password+"");
            $("#name").attr("value",""+result.name+"");
            $("#email").attr("value",""+result.email+"");
            $("#phone").attr("value",""+result.phone+"");
        }
    })
}
function add(id) {
    $.ajax({
        "url":"../user_all.do",
        "type":"POST",
        "data":{"method":"review"},
        "dataType":"json",
        "success":function (result) {
            $("form").append($("<input type='hidden' name='box' value='"+id+"'>"));
            $("#id").attr("value",""+result.id+"");
            $("#password").attr("value",""+result.password+"");
            $("#name").attr("value",""+result.name+"");
            $("#email").attr("value",""+result.email+"");
            $("#phone").attr("value",""+result.phone+"");
        }
    })
}